<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/module/checkA.php");
include_once("../../../../config.php");
include_once("../controller/delete.php");
?>




<?php
$new_detail_nid=$_GET['nid'];

//设置需要搜索的表格的前缀后缀
$table_suffix="unit";
$table=$table_Prefix.$table_suffix;
//设置需要搜索的表格的前缀后缀


$sql = " DELETE FROM $table WHERE nid=$new_detail_nid";
$query=mysql_query($sql) or die ('删除数据失败');
mysql_close($con);

if($query)
{
    $result=200;
}
else
{
    $result=0;
}

$arr['status'] = 200;
$arr['info'] = "";
die(json_encode($arr));


?>


